<?
###########  conexiune la BD  ###########
    $dbhost        = "localhost";
    $dbuser        = "root";
    $dbpasswd    = "";
    $dbname        = "timona";

##############  cale site  ##############

	//error_reporting(0);
        error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
	//ini_set('display_errors','On');
        //define (srvd, '/srv/www/vhosts/timona.ro/httpdocs/admin/');     // calea pe server a site-ului
        // define (srvurl, 'http://www.timona.ro/admin/');     // link-ul catre site
    
        define (srvd, 'D:/xampp/htdocs/timona/admin/');     // calea pe server a site-ului
        define (srvurl, 'http://127.0.0.1/timona/admin/');     // link-ul catre site

	// init MySQL obj.
	mysql_connect($dbhost,$dbuser,$dbpasswd) or die("no");
	mysql_select_db($dbname);

#########################################
session_start();
ini_set('memory_limit', '64M'); 

include ('parcurgere.php');
include ('input.php');

$levels=array("0"  => "Admin","10" => "Agent");
  
foreach ($_POST as $key => $value) {  
    $var_post= new Input();
    $_POST[$key] = $var_post->post($key);
}

//This stops SQL Injection in GET vars
foreach ($_GET as $key => $value) {
    $var_get= new Input();
    $_GET[$key] = $var_get->get($key);
} 

?>